<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>新建咨询单</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="/static/css/font.css">
        <link rel="stylesheet" href="/static/css/xadmin.css">
		<link rel="stylesheet" href="/static/css/table.css">
        <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="/static/js/xadmin.js"></script>
        <link rel="stylesheet" href="/static/css/updateimg.css">
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="x-nav">
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>咨询信息</li>
							  </ul>
							  <div class="layui-tab-content">
								 <span>咨询日期：{$info.addtime|date="Y-m-d H:i:s",###}</span>
								 <span style="margin-left:30px;">咨询门店：{$info.shop_name}</span>
								 <span style="margin-left:30px;">营业员：{$info.clerk}</span>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>客户信息</li>
							  </ul>
							  <div class="layui-tab-content">
								 <span>客户姓名：{$info.username}</span>
								 <span style="margin-left:30px;">客户称呼：{$info.nkname}</span>
								 <span style="margin-left:30px;">联系方式：{$info.phone}</span>
								 <span style="margin-left:30px;">备用联系方式：{$info.spare_phone}</span>
								 <span style="margin-left:30px;">客户编号：{$info.user_sn}</span>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>咨询产品</li>
							  </ul>
							  <div class="layui-tab-content">
									<table class="layui-table layui-form">
									  <thead>
										<tr>
										  <th>序号</th>
										  <th>产品名称</th>
										  <th>产品分类</th>
										  <th>产品子分类</th>
										  <th>品牌</th>
										  <th>型号</th>
										  <th>内存</th>
										  <th>属性</th>
										  <th>颜色</th>
										  <th>是否有货</th>
									  </thead>
									  <tbody>
										{volist name="goods" id="vo" key="i"}
                                        <tr>
										  <td>{$i}</td>
										  <td>{$vo.goods_name}</td>
										  <td>{$vo.category_name}</td>
										  <td>{$vo.cat_name}</td>
										  <td>{$vo.brand_name}</td>
										  <td>{$vo.marker}</td>
										  <td>{$vo.memory_name}</td>
										  <td>{$vo.attribute_name}</td>
										  <td>{$vo.colour_name}</td>
										  <td>
                                          {switch name="vo.is_stock"}
                                             {case value="0"}无货{/case}
                                             {case value="1"}有货{/case}
                                          {/switch}
                                          </td>
										</tr>
										{/volist}
									  </tbody>
									</table>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>咨询产品照片</li>
							  </ul>
							  <div class="layui-tab-content">
                                  <div id="showimg" style="display:flex;flex-direction:row;flex-wrap:wrap;align-items:center">
                                        <ul id="showui" style="padding-left:0!important">
                                              {volist name="img" id="vo"}
                                              <li><img src="/{$vo.img_src}"/></li>
                                              {/volist}
                                        </ul>
                                    </div>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>咨询备注</li>
							  </ul>
							  <div class="layui-tab-content">
								 {$info.remarks}
							  </div>
							</div>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </body>
</html>